/**
 * @license
*
* PreProcessing is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* PreProcessing is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with PreProcessing.  If not, see <http://www.gnu.org/licenses/>.
* 
*/
package SmartGrid;

import java.sql.Timestamp;

/**
 *
 * @author Grant
 */
public class Tariff {
    private int tariffID;
    private boolean isPeak;
    Timestamp startDate;
    Timestamp endDate;
    private double amount;

    public Tariff() {
    }

    public int getTariffID() {
        return tariffID;
    }

    public Tariff(int tariffID, boolean isPeak, Timestamp startDate, Timestamp endDate, double amount) {
        this.tariffID = tariffID;
        this.isPeak = isPeak;
        this.startDate = startDate;
        this.endDate = endDate;
        this.amount = amount;
    }

    public boolean isIsPeak() {
        return isPeak;
    }

    public void setAmount(double amount) {
        this.amount = amount;
    }

    public void setEndDate(Timestamp endDate) {
        this.endDate = endDate;
    }

    public void setStartDate(Timestamp startDate) {
        this.startDate = startDate;
    }

    public void setIsPeak(boolean isPeak) {
        this.isPeak = isPeak;
    }

    public void setTariffID(int tariffID) {
        this.tariffID = tariffID;
    }

    @Override
    public String toString() {
        return super.toString();
    }

    public double getAmount() {
        return amount;
    }

    public Timestamp getEndDate() {
        return endDate;
    }

    public Timestamp getStartDate() {
        return startDate;
    }
    

}
